<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    

    <script>
        let arr = [
            {
                id: 0,
                title: "标题1",
                children: [1111111, 22222222,  333333333, 'sdsfasd']
            },
            {
                id: 1,
                title: "标题2",
                children: [4444444, 555555555, 6666666, 'aaaaaa']
            },
            {
                id: 2,
                title: "标题3",
                children: [77777777, 88888888, 99999999, 'bbbbbbb']
            }
        ]

        let arr2 = arr.filter(item => {
            item.children = item.children.filter(items => typeof items === 'number')
            return item.id < 2
        })
        console.log(arr2)
    </script>
</body>
</html>